Skip to content

Fix chat history filter dropping repeated user messages#598

Open
au-sf wants to merge 1 commit into
666ghj:mainfrom
au-sf:fix-chat-history-filter
Open

Fix chat history filter dropping repeated user messages#598
au-sf wants to merge 1 commit into
666ghj:mainfrom
au-sf:fix-chat-history-filter

Conversation

@au-sf
Copy link
Copy Markdown

@au-sf au-sf commented May 2, 2026

Hit this while testing chat in step 5. If you send the same short reply twice (e.g. "tell me more") the filter at Step5Interaction.vue:687 also drops the earlier matching message, so the backend gets a chat_history with consecutive assistant messages and no immediately-preceding user turn.

Repro:

  1. Ask anything
  2. Reply "tell me more"
  3. Reply "tell me more" again. The chat_history sent to /api/report/chat is missing the turn-2 user message

Same shape of bug at line 723 in sendToAgent.

…tory

The filter was meant to skip the message just pushed by the caller, but
it matches by content, so a repeated message like "tell me more" also
removes the previous turn from the history sent to the backend.
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant